<clickhouse>
  <profiles>
    <profile_1>
      <max_parallel_replicas>2</max_parallel_replicas>
      <!-- max_query_size is inherited one by one and final should be 400000000 -->
      <max_query_size>200000000</max_query_size>
      <constraints>
        <max_memory_usage>
          <min>100000000</min>
        </max_memory_usage>
        <max_parallel_replicas>
          <readonly/>
        </max_parallel_replicas>
      </constraints>
    </profile_1>
    <profile_2>
      <max_network_bytes>1234567890</max_network_bytes>
      <max_query_size>300000000</max_query_size>
      <constraints>
        <max_memory_usage>
          <min>200000000</min>
        </max_memory_usage>
        <max_network_bytes>
          <min>1234567889</min>
          <max>1234567891</max>
        </max_network_bytes>
      </constraints>
    </profile_2>
    <profile_3>
      <max_insert_block_size>654321</max_insert_block_size>
      <max_query_size>400000000</max_query_size>
      <constraints>
        <max_memory_usage>
          <min>300000000</min>
        </max_memory_usage>
        <max_insert_block_size>
          <min>654320</min>
          <max>654322</max>
        </max_insert_block_size>
      </constraints>
    </profile_3>
    <combined_profile>
      <profile>profile_1</profile>
      <profile>profile_2</profile>
      <profile>profile_3</profile>
      <readonly>2</readonly>
    </combined_profile>
  </profiles>
  <users>
    <test_combined_profile>
      <password></password>
      <networks>
        <ip>::/0</ip>
      </networks>
      <quota>default</quota>
      <profile>combined_profile</profile>
    </test_combined_profile>
  </users>
</clickhouse>
